﻿#define _CRT_SECURE_NO_WARNINGS//实现一个函数来交换两个整数的内容。
#include<stdio.h>
void swap(int* px, int* py)
{
	int t = 0;
	t = *px;
	*px = *py;
	*py = t;
}
int main()
{
	int a = 10, b = 20;
	printf("交换前：a=%d b=%d\n", a, b);
	swap(&a, &b);
	printf("交换后：a=%d b=%d\n", a, b);

	return 0;
}